import Vue from "vue";
import "element-ui/lib/theme-chalk/index.css";
import "./style/reset.css";
import "./style/common.css";
import "./script/register";

import App from "./App";
import router from "./router";
import store from "./store";

import { Pagination, Loading, Tooltip } from "element-ui";
Vue.use(Pagination);
Vue.use(Loading);
Vue.use(Tooltip);

//加载配置文件
import config from "@/config";
Vue.use(config);

import mixins from "@/mixins";
Vue.use(mixins);

//全局的过滤器
import filters from "@/filters";
Object.keys(filters).forEach((key) => {
  Vue.filter(key, filters[key]);
});



Vue.config.productionTip = false;

new Vue({
  el: "#app",
  render: (h) => h(App),
  store,
  router,
});
